package tileGroup
{
	import lable.LableGroup;

	/**
	 *lable和title组合 
	 * @author qiutianxu
	 * 
	 */	
	public class LableTitleGroup extends MyTileGroup
	{
		public function LableTitleGroup()
		{
			super();
		}
		
		[Bindable]
		private var _dataArray:Array=new Array();
		
		/**
		 *赋值 
		 * @param value 元素结构{title:"标题",value:"值"}
		 * @return 
		 * 
		 */		
		override public function set dataArray(value:Array){
			
			_dataArray=value;
			this.removeAllElements();
			
			for each (var obj:Object in _dataArray) 
			{
				var lg:LableGroup=new LableGroup();
				lg.title=obj["title"];
				lg.value=obj["value"];
				
				this.addElement(lg);
			}

			
			
		}
		
	}
}